package com.groupbuying.settleconsumer.dao;

import com.groupbuying.settleconsumer.domain.SettleUshopYSSplitReceiptDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/5/10 15:41
 * @Des 银盛异步回执接口
 */
@Mapper
@Repository
public interface SettleUshopYSSplitReceiptDao {
    /**
     * @author WYN
     * @date 2019/5/10
     * @param id
     * @return com.groupbuying.settleproducer.domain.YSSplitReceipt
     * @des 根据id查询一条记录
     */
    SettleUshopYSSplitReceiptDO get(String id);
    /**
     * @author WYN
     * @date 2019/5/10
     * @param map
     * @return List
     * @des 查询列表
     */
    List<SettleUshopYSSplitReceiptDO> list(Map<String, Object> map);
    /**
     * @author WYN
     * @date 2019/5/10
     * @param map
     * @return int
     * @des 查询总记录
     */
    int count(Map<String, Object> map);
    /**
     * @author WYN
     * @date 2019/5/10
     * @param splitReceipt
     * @return int
     * @des 保存一条记录
     */
    int save(SettleUshopYSSplitReceiptDO splitReceipt);
    /**
     * @author WYN
     * @date 2019/5/10
     * @param splitReceipt
     * @return int
     * @des 更新一条记录
     */
    int update(SettleUshopYSSplitReceiptDO splitReceipt);
    /**
     * @author WYN
     * @date 2019/5/10
     * @param id
     * @return int
     * @des 删除一条记录
     */
    int remove(String id);
    /**
     * @author WYN
     * @date 2019/5/10
     * @param ids
     * @return int
     * @des 删除多条记录
     */
    int batchRemove(String[] ids);
}
